package com.yc.time;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;

@RestController
public class TimeAction {

    @RequestMapping("time")
    public String getTime() {
        return new Date().toString();
    }

}
